﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.Infrastructure.Dto.Common;

namespace WCS.Infrastructure.Dto.Request.Organization
{
    /// <summary>
    /// 角色表对象
    /// </summary>
    public class RoleRequestDto:BaseRequestDto
    {
        /// <summary>
        /// 系统角色ID
        /// </summary>
        [Key]
        [StringLength(32)]
        public string? Id { get; set; } = null!;

        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(255)]
        public string? RoleName { get; set; } = null!;

        /// <summary>
        /// 角色类型(0=平台超管，1=平台管理，2=超管，3=管理，4=监事，5=店长，6=收银员，7=业主，8=招商，9=城市合伙人，10=运营，11=技术，12=会员)
        /// </summary>
        public int? RoleType { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        [StringLength(255)]
        public string? Description { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(TypeName = "timestamp(6) without time zone")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 组织类型（0=平台，1=商户，2=门店）
        /// </summary>
        public int? OrganizationType { get; set; }

        /// <summary>
        /// 查询多个组织类型
        /// </summary>
        public List<int>? OrgTypeList { get; set; }
    }
}
